<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<HTML>
	<HEAD>
		<meta http-equiv="Content-Language" content="zh-cn">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<LINK href="${pageContext.request.contextPath}/css/Style1.css" type="text/css" rel="stylesheet">
	</HEAD>
	
	<body>
		<!--  -->
		<form id="userAction_save_do" name="Form1" action="${pageContext.request.contextPath}/AddBookServlet" method="post" enctype="multipart/form-data" >
			<input type="hidden" name="book_id" value="${ book.book_id}">
			<input type="hidden" name="isunder" value="${ book.isunder}">
			<input type="hidden" name="book_image" value="${ book.book_image}">
			
		
			<table cellSpacing="1" cellPadding="5" width="100%" align="center" bgColor="#eeeeee" style="border: 1px solid #8ba7e3">
				<tr>
					<td class="ta_01" align="center" bgColor="#afd1f3" colSpan="4"
						height="26">
						<strong><STRONG>编辑图书</STRONG>
						</strong>
					</td>
				</tr>

				<tr>
					<td width="18%" align="center" bgColor="#f5fafe" class="ta_01">
						图书名称：
					</td>
					<td class="ta_01" bgColor="#ffffff">
						<input type="text" name="book_name" value="${ book.book_name }" id="userAction_save_do_logonName" class="bg"/>
					</td>
					<td width="18%" align="center" bgColor="#f5fafe" class="ta_01">
						是否热门：
					</td>
					<td class="ta_01" bgColor="#ffffff">
						
						<select name="ishot">
							<option value="0" <c:if test="${book.ishot==0 }">selected</c:if>>是</option>
							<option value="1" <c:if test="${book.ishot==1 }">selected</c:if>>否</option>
						</select>
					</td>
				</tr>
				<tr>
					<td width="18%" align="center" bgColor="#f5fafe" class="ta_01">
						图书编号：
					</td>
					<td class="ta_01" bgColor="#ffffff">
						<input type="text" name="book_number" value=" ${ book.book_number } " id="userAction_save_do_logonName" class="bg"/>
					</td>
					<td width="18%" align="center" bgColor="#f5fafe" class="ta_01">
						图书作者：
					</td>
					<td class="ta_01" bgColor="#ffffff">
						<input type="text" name="book_author" value="${ book.book_author }" id="userAction_save_do_logonName" class="bg"/>
					</td>
				</tr>
				<tr>
					<td width="18%" align="center" bgColor="#f5fafe" class="ta_01">
						图书图片：
					</td>
					<td class="ta_01" bgColor="#ffffff" >
						<input type="file" name="book_image"  />
						<%-- <input type="text" name="book_image" value="${ book.book_image}"> --%>
					</td>
					<td width="18%" align="center" bgColor="#f5fafe" class="ta_01">
						是否在馆：
					</td>
					<td class="ta_01" bgColor="#ffffff">
						<select name="book_status">
							<option value="0" <c:if test="${book.book_status==0 }">selected</c:if>>是</option>
							<option value="1" <c:if test="${book.book_status==1 }">selected</c:if>>否</option>
						</select>
					</td>
				</tr>
				<tr>
					<td width="18%" align="center" bgColor="#f5fafe" class="ta_01">
						所属的分类：
					</td>
					<td class="ta_01" bgColor="#ffffff" >
						<select name="book_category_id">
							<c:forEach var="c" items="${ list }">
								<option value="${ c.category_id }" <c:if test="${c.category_id eq book.book_category_id}">selected</c:if>>${ c.category_name }</option>
							</c:forEach>
						</select>
					</td>
					<td width="18%" align="center" bgColor="#f5fafe" class="ta_01">
						库存：
					</td>
					<td class="ta_01" bgColor="#ffffff">
						<input type="text" name="inventory" value="${ book.inventory }" id="inventory" class="bg"/>
					</td>
				</tr>
				<tr>
					<td width="18%" align="center" bgColor="#f5fafe" class="ta_01">
						图书简介：
					</td>
					<td class="ta_01" bgColor="#ffffff" colspan="3">
						<textarea name="book_introduce" rows="5" cols="30" style="resize:none;width:90%">${ book.book_introduce }</textarea>
					</td>
				</tr>
				<tr>
					<td width="18%" align="center" bgColor="#f5fafe" class="ta_01">
						备注：
					</td>
					<td class="ta_01" bgColor="#ffffff" colspan="3">
						<textarea name="unfoCricum" rows="5" cols="30" style="resize:none;width:90%">${ book.unfoCricum }</textarea>
					</td>
				</tr>
				<tr>
					<td class="ta_01" style="WIDTH: 100%" align="center"
						bgColor="#f5fafe" colSpan="4">
						<button type="submit" id="userAction_save_do_submit" value="确定" class="button_ok">
							&#30830;&#23450;
						</button>

						<FONT face="宋体">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT>
						<button type="reset" value="重置" class="button_cancel">&#37325;&#32622;</button>

						<FONT face="宋体">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT>
						<INPUT class="button_ok" type="button" onclick="history.go(-1)" value="返回"/>
						<span id="Label1"></span>
					</td>
				</tr>
			</table>
		</form>
	</body>
	

</HTML>